{template 'nav_new.inc'}
<form class="form-inline" role="form" action="{php echo $this->createMobileUrl('list2',array(),true)}" method="post">
    <div class="am-form-group am-form-icon">
        <input type="text" size="20px" name="keyword" style="width: 96%;margin:10px auto;padding:10px 30px 10px 10px!important;" class="am-form-field am-radius" placeholder="请输入你想搜索关键字">
        <i class="am-icon-search" style="left: inherit;;right:.625em"></i>
    </div>
</form>
<!--
<style>
    .box{border:1px solid #ccc;}
    .caption p{padding: 0 5px; margin:0;margin-top: 10px;height: 22px;overflow: hidden;}
    .caption strong{font-size: 20px; color:#ff4400;}

    .caption span{float: right;margin-top: 5px; color:#9D8E8E;}
</style>
<ul class="am-avg-sm-2 am-thumbnails" style="margin: 0;">
    {loop $list $key $row}
    <li>
        <div class="box">
            <a href="{php echo $this->createMobileUrl('detail', array('name' => 'detail', 'id' => $row['id'], 'weid' => $_W['weid']))}">
                <img src="{$_W['attachurl']}{$row['thumb1']}" alt="{$row['title']}" class="img-rounded" style="width:100%;height:207px;">
            </a>
            <div class="caption">
                <p>{$row['title']}</p>
                <strong>￥{$row['price']}</strong>
                <span>20分钟前</span>
                <div style="clear:both;"></div>
            </div>
        </div>
    </li>
    {/loop}
</ul>
-->
<style>
    .box{padding: 10px;}
    .box a{float: left;}
    .caption{float: left; margin-left: 4px; width: 65%;}
    .caption p{padding: 0 5px; margin:0;height: 22px;overflow: hidden;}
    .caption strong{font-size: 20px; color:#ff4400;}

    .caption span{float: right;margin-top: 5px; color:#9D8E8E; font-size: 14px;}
</style>
<ul class="am-list">
    {loop $list $key $row}
    <li>
        <div class="box">
            <a href="{php echo $this->createMobileUrl('detail', array('name' => 'detail', 'id' => $row['id'], 'weid' => $_W['weid']))}" style="width: 30%;">
                <img src="{$_W['attachurl']}{$row['thumb1']}" alt="{$row['title']}" class="img-rounded" style="width:100%;height:54px;">
            </a>
            <a href="{php echo $this->createMobileUrl('detail', array('name' => 'detail', 'id' => $row['id'], 'weid' => $_W['weid']))}" style="float: none; color: #333;">
                <div class="caption">
                    <p>{$row['title']}</p>
                    <strong>￥{$row['price']}</strong>
                    <span>{$row['createtime']}前</span>
                    <div style="clear:both;"></div>
                </div>
            </a>
            <div style="clear:both;"></div>
        </div>
    </li>
    {/loop}
</ul>

<script>
sharedata = {
    'title' : "二手市场 — {$_W['account']['name']}",
    'desc' : "{$_W['account']['name']} — 二手市场 — 物品买卖，跳蚤市场。",
    'link' : '',
    'imgUrl' : "{$_W['siteroot']}addons/secondmarket/template/static/logo.jpg"
}
    $(function(){
        var img = $('.img-rounded');
        var img_h = img.width()*4/5;
        img.height(img_h);
        var h = $('.caption p').height();
        var s =$('.caption strong').height();

        var d = img_h-h-s-5;

        $('.caption p').css({'height':(d+h)+'px','line-height':((d+h)/2)+'px'});

    });
</script>
<footer data-am-widget="footer" class="am-footer am-footer-default" data-am-footer="{  }">
    <div class="am-footer-miscs ">
        <p>由 <a href="#" title="{$_W['account']['name']}" target="_blank" class="">{$_W['account']['name']}</a> 提供技术支持</p>
        <!--<p>CopyRight©2015 ThinkIdea Inc.</p>-->
    </div>
</footer>